Silk Mobile

Table of Contents (Homepage)

Monitoring Commands

Silk Mobile provides monitoring infrastructure. The monitors can run during your test execution, and as your tests are being executed the monitors will collect data from the device.

Notes:
  1. The current supported monitors are:

    • Memory: Bytes

    • CPU: percentage

    • Battery: percentage

  2. This feature is supported on Android, iOS and Windows Phone devices.

  3. This feature works only on prepared applications (Instrumented)

  4. This feature works during the test only when the prepared application is open.

Here are the monitor-related commands:

  1. GetCounter: will retrieve the value of the requested monitor (it will run once).

  2. StartMonitor: will start monitoring the requested monitor during the test. The monitor will start collecting data every 30 seconds.

  3. GetMonitorData: return the content of the monitor’s values as a string in CSV format.

  4. SetMonitorTestState: Add Step Info in the generated CSV file (which is created using the GetMonitorsData )

  5. SetMonitorPollingInterval : sets the intervals between each polling of the StartMonitor command.

images/download/attachments/3310317/1.jpg

The report's command title will include the monitored data information:

images/download/attachments/3310317/2.jpg

At the end of the report you will find a link to a data file (CSV) that contains all the monitored information:

images/download/attachments/3310317/3.jpg